import type { RouteRecordRaw } from 'vue-router';

import Layout from '@/layouts/index.vue';

export const dialogRoutes: RouteRecordRaw[] = [
  {
    path: '/dialog',
    name: 'DialogRoot',
    component: Layout,
    redirect: '/dialog/index',
    meta: {
      icon: 'TakeawayBox',
      hideBreadcrumb: true,
    },
    children: [
      {
        path: '/dialog/index',
        name: 'DialogIndex',
        component: () => import('@/views/dialog/index.vue'),
        meta: {
          title: 'Dialog对话框',
        },
      }
    ],
  }
];
